package 我的Java学习_算法基础.day_01;

import java.util.Scanner;

public class 二的整数次方 {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int n =scanner.nextInt();
        System.out.println(Integer.toString(n,2));
        if((n&(n-1))==0){
            System.out.println(n+"是二的整数次方");
        }
    }
}
